Repository navigation
Add step.sandbox.typescript() - #1784
Merged
Merged
Conversation
Same shape as the Python runner: input as variables, a top-level return as the result, and a group of kind ts around create, run and destroy. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-ts-runner Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] Adds TypeScript code execution to the sandbox feature. The advertised output-schema support should be implemented before merging. Findings
Fix with agent prompt### Issue 1
packages/inngest/src/components/sandbox/types.ts:569
The new `typescript` method uses `SandboxRunner`, whose options do not accept `schema.output`. Users following the schema example in this PR get a TypeScript error, and the result type cannot be inferred from the schema. If a handle caller bypasses the type check, `schema` reaches the strict command-options check and is rejected before the snippet runs.
Add schema support to the runner options, infer the output type, and check the returned value before resolving.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryAdds
|
… tmp/pr-comments-ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 8a44bac The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Runs every runner case against real Cloud sandboxes through a devstack Dev Server: `pnpm -C packages/inngest test:sandbox-live`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Node 26 only strips types, so enums are not supported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…suite Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… HEAD # Conflicts: # packages/inngest/src/components/sandbox/runners.test.ts
jakobevangelista
approved these changes
Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
step.sandbox.typescript(), a managed-lifecycle Sandbox that runs TypeScript code and can takeinput.Direct step usage
Run TS, with the sandbox's lifecycle managed for you.
inputs become variables accessible by the code.Reusable functions
Create a reusable function usable during any run.
Output can also be typed and validated using any
StandardSchema-compliant schema library.Trace
Checklist
Added a docs PR that references this PRN/A Later bumpRelated
step.sandbox.python()#1783